package com.rmy.queue.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.rmy.queue.mapper.QmsBusinessConfigMapper;
import com.rmy.queue.domain.QmsBusinessConfig;
import com.rmy.queue.service.IQmsBusinessConfigService;

/**
 * 业务配置Service业务层处理
 * 
 * @author rmy
 * @date 2022-09-28
 */
@Service
public class QmsBusinessConfigServiceImpl implements IQmsBusinessConfigService 
{
    @Autowired
    private QmsBusinessConfigMapper qmsBusinessConfigMapper;

    /**
     * 查询业务配置
     * 
     * @param id 业务配置主键
     * @return 业务配置
     */
    @Override
    public QmsBusinessConfig selectQmsBusinessConfigById(Long id)
    {
        return qmsBusinessConfigMapper.selectQmsBusinessConfigById(id);
    }

    /**
     * 查询业务配置列表
     * 
     * @param qmsBusinessConfig 业务配置
     * @return 业务配置
     */
    @Override
    public List<QmsBusinessConfig> selectQmsBusinessConfigList(QmsBusinessConfig qmsBusinessConfig)
    {
        return qmsBusinessConfigMapper.selectQmsBusinessConfigList(qmsBusinessConfig);
    }

    /**
     * 新增业务配置
     * 
     * @param qmsBusinessConfig 业务配置
     * @return 结果
     */
    @Override
    public int insertQmsBusinessConfig(QmsBusinessConfig qmsBusinessConfig)
    {
        return qmsBusinessConfigMapper.insertQmsBusinessConfig(qmsBusinessConfig);
    }

    /**
     * 修改业务配置
     * 
     * @param qmsBusinessConfig 业务配置
     * @return 结果
     */
    @Override
    public int updateQmsBusinessConfig(QmsBusinessConfig qmsBusinessConfig)
    {
        return qmsBusinessConfigMapper.updateQmsBusinessConfig(qmsBusinessConfig);
    }

    /**
     * 批量删除业务配置
     * 
     * @param ids 需要删除的业务配置主键
     * @return 结果
     */
    @Override
    public int deleteQmsBusinessConfigByIds(Long[] ids)
    {
        return qmsBusinessConfigMapper.deleteQmsBusinessConfigByIds(ids);
    }

    /**
     * 删除业务配置信息
     * 
     * @param id 业务配置主键
     * @return 结果
     */
    @Override
    public int deleteQmsBusinessConfigById(Long id)
    {
        return qmsBusinessConfigMapper.deleteQmsBusinessConfigById(id);
    }

    @Override
    public List<QmsBusinessConfig> selectBusinessDataType(boolean exceptBind) {
        return qmsBusinessConfigMapper.selectBusinessDataType(exceptBind);
    }
}
